export default {
  namespaced: true, //命名空间
  state: {
    //实习方向选择的id项
    SXDirectionSelectKey: ["0"],
    SXDirectionName: "",
    //实习小组选择的id项
    SXGroupSelectKey: ["0"],
    SXGroupName: "",
    SXGroupTeacherName: "",
    SXGroupTeacherPhone: "",
    //控制提交申请的遮罩层
    SpinningState: false,
  },
  getters: {},
  mutations: {
    setSXDirectionSelectKey(state, data) {
      state.SXDirectionSelectKey = data.key;
      state.SXDirectionName = data.name;
    },
    setSXGroupSelectKey(state, data) {
      state.SXGroupSelectKey = data.key;
      state.SXGroupName = data.Name;
      state.SXGroupTeacherName = data.TeacherName;
      state.SXGroupTeacherPhone = data.TeacherPhone;
    },
    setSpinningState(state) {
      state.SpinningState = !state.SpinningState;
    },
    resetData(state){
      state.SXDirectionSelectKey=["0"];
      state.SXGroupSelectKey=["0"];
    }
  },
  actions: {},
};
